package cn.school.entity;

import java.util.ArrayList;
import java.util.List;

public class Grade {
	private long id;
	private String gname;
	private List<Subject> sbList = new ArrayList<Subject>();

	public List<Subject> getSbList() {
		return sbList;
	}

	public void setSbList(List<Subject> sbList) {
		this.sbList = sbList;
	}

	private List<Student> glist = new ArrayList<Student>();

	public List<Student> getGlist() {
		return glist;
	}

	public void setGlist(List<Student> glist) {
		this.glist = glist;
	}

	@Override
	public String toString() {
		return "Grade [id=" + id + ", gname=" + gname + "]";
	}

	public Grade(long id, String gname) {
		this.id = id;
		this.gname = gname;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}
}
